{% extends "map/new_base.html" %}


{% comment %}

  Search page
  ------------------
  
  VERY Basic searching against maker name or description.

{% endcomment %}

{% block javascript %}

  
  <style type="text/css">
    
    .ui-rater-starsOff {
                          height: 18px;
                          width: 90px;
                          display: inline-block;
                          background: url(/assets/javascript/stars.png) repeat-x 0 0px;
                       }
                       
    .ui-rater-starsOn  {
                           height: 18px;
                           top: 0;
                           height: 18px;
                           width: 0px;
                           background: url(/assets/javascript/stars.png) repeat-x 0 -36px;
                       }
  </style>
{% endblock %}


{% block title %}
  Potton Online  |  Search
{% endblock %}

{% block page_middle  %}


{% if not markers %}
  <h2>Sorry, no results found.  This will search will only match against the name of the map markers.</h2>
  
  <form method="POST" action="/search">
    Search for:  <input type="text" name="search_term" />   <br />
    <input type="submit" value="Search" />
  </form>

{% else %}

  {% for marker in markers %}
    Name:  <a href="{{marker.slug}}"> {{marker.name}} </a>  ({{marker.itemtype}})<br />
    {{marker.description}}<br />
    <hr />
  {% endfor %}

{% endif %}
    
{% endblock %}

{% block page_left %}
  {% include 'map/default_pageleft.html' %}
{% endblock %}

{% block page_right %}
  {% include 'map/default_pageright.html' %}
{% endblock %}
